package beans;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.SessionScoped;
import javax.faces.event.ValueChangeEvent;

import admin.CrudUserBean;

@SessionScoped
@ManagedBean
public class AdminPageBean {
	
	private String menu;
	
	public AdminPageBean() {
	}

	public String getMenu() {
		return menu;
	}

	public void setMenu(String menu) {
		this.menu = menu;
	}

	private String page = "users";

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}
	
	public void listener(ValueChangeEvent event){
		menu=event.getNewValue().toString();	
	}
}
